package com.wang.bootbuilder.entity.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "分类参数")
public class CategoryParam {

    @ApiModelProperty(value = "分类Id")
    Long categoryId;

    @NotBlank(message = "分类名称不能为空")
    @ApiModelProperty(value = "分类名称")
    String categoryName;

    @ApiModelProperty(value = "父分类Id")
    Long parentId;

}
